package com.cc.entity;

import java.util.Date;
import java.util.List;

/**
 * 
    * @ClassName: Order  
    * @Description: 订单  
    * @author 新梦想IT学院.陈超
    * @date 2020年4月26日  
    *    
 */
public class Order {
    private Integer id;
    //用户ID
    private Integer userId;

    private String number;

    private Date createtime;

    private String note;
    
    //查询某一个订单信息的时候，同时查出该订单用的所有信息
    private User user;
    
    //当查询一个订单信息的时候，同时要查询出所有订单详情所有信息
    private List<OrderDetail> details;
    

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    
    
    

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

   

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    
    

    @Override
    public String toString() {
        return "Order [id=" + id + ", number=" + number + ", createtime=" + createtime + ", note=" + note + "]";
    }

    public List<OrderDetail> getDetails() {
        return details;
    }

    public void setDetails(List<OrderDetail> details) {
        this.details = details;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    
    
    
}
